#ifndef NODECONFIGUREVIEW_H
#define NODECONFIGUREVIEW_H

#include <QDialog>
#include <QComboBox>
#include "dboperate.h"

namespace Ui {
class NodeConfigureView;
}

class ComboBox : public QComboBox
{
    Q_OBJECT
public:
    explicit ComboBox(QWidget *parent = 0);
    ~ComboBox();

    void wheelEvent(QWheelEvent *);
};

class NodeConfigureView : public QDialog
{
    Q_OBJECT

public:
    explicit NodeConfigureView(QWidget *parent = 0);
    ~NodeConfigureView();

    void setTable(QVector<NodeInfo>);

private slots:
    void on_applyButton_clicked();

    void on_addButton_clicked();

    void on_removeButton_clicked();

private:
    Ui::NodeConfigureView *ui;
    QStringList areas;
    QVector<ComboBox *> comboboxs;
};

#endif // NODECONFIGUREVIEW_H
